const nxPicker = require('../../behaviors/form/nx-picker');
import {
  getDicByEnumName
} from '../../utils/tools';

Component({
  behaviors: [nxPicker],
  properties: {
    enumName: {
      type: String,
      observer(enumName) {
        const columns = getDicByEnumName(enumName);
        this.setData({
          columns
        });
      }
    },
  },
})